package com.lei.day02lx.mvp;

import com.lei.day02lx.GsonBean;
import com.lei.day02lx.network.NetWorkManager;
import com.lei.day02lx.network.response.Response;

import java.util.HashMap;
import java.util.List;

import io.reactivex.Observable;

/**
 * @author Lc
 * @description: 负责获取网络连接,返回数据模型
 * @date :2020/11/10 15:25
 */
public class Model implements Contract.Model{
    @Override
    public Observable<Response<List<GsonBean>>> getCartList(HashMap<String,String> map) {
        map = new HashMap<>();
        map.put("stage_id","1");
        map.put("limit","20");
        map.put("page","10");
        return NetWorkManager.getRequest().getList(map);
    }
}
